package com.example.mongologistics.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Date;
import java.util.List;
@ApiModel("订单对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Order {

    @ApiModelProperty("订单id")
    private int id;
    @ApiModelProperty("物流状态")
    private String status;
    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date orderTime;

    @ApiModelProperty("发货人")
    private String shipper;
    @ApiModelProperty("发货地址")
    private String shippingAddress;
    @ApiModelProperty("发货人电话")
    private long shipperPhone;
    @ApiModelProperty("发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")


    private Date shipTime;
    @ApiModelProperty("收件人")
    private String receiver;
    @ApiModelProperty("收件地址")
    private String receiverAddress;
    @ApiModelProperty("收件人电话")
    private long receiverPhone;
    @ApiModelProperty("物流状态列表")
    private List<Logistics> logisticsList;


}
